// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store/index'
import axios from 'axios'
import Qs from 'qs'
import commonDialog from '@/assets/js/dialog'
import 'babel-polyfill'
import fastClick from 'fastclick'
import '@/assets/css/reset.css'
import '@/assets/css/border.css'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css'
import '@/assets/js/flexible'
import {
  Switch
} from 'element-ui'
import '@/assets/css/dialog.css'
import VueLazyLoad from 'vue-lazyload'
import {
  DatetimePlugin
} from 'vux'

fastClick.attach(document.body)
Vue.use(DatetimePlugin)
Vue.use(VueAwesomeSwiper)
Vue.use(Switch)
Vue.use(VueLazyLoad, {
  error: './static/images/default.png',
  loading: './static/images/loading.gif'
})

Vue.config.productionTip = false

Vue.prototype.axios = axios
Vue.prototype.qs = Qs
Vue.prototype.commonDialog = commonDialog

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: {
    App
  },
  template: '<App/>'
})
